﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wilson/MP/Base.Master" AutoEventWireup="true" CodeBehind="ProOtherImgList.aspx.cs" Inherits="WebsiteAdmin.Wilson.ProInfo.ProOtherImgList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head_Title" runat="server">Wilson - 产品附属图 - 列表</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Head_Meta" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Head_Css" runat="server">
    <style type="text/css">
        span.del{ color:#999; text-decoration:line-through;}
        img.thumbImg{ width:40px; height:40px;}
    </style>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Head_Script" runat="server">
    <script type="text/javascript" src="/Script/Mootools.Smoothbox.js"></script>
    <script type="text/javascript" language="javascript">
        var MenuViewID = 2;
        function Del(e) {
            if (confirm('确定删除该组附属图？')) {
                //LightBox.show();
                new Request.JSON({
                    method: 'post',
                    url: 'Handler/ProOtherDelete.ashx',
                    data: {
                        PKID: e
                    },
                    noCache: true,
                    onSuccess: function(data, text) {
                        if (data.Done == 'Success') {
                            alert('删除成功');
                            document.location.reload();
                        } else {
                            alert('删除失败');
                        }
                        //LightBox.remove();
                    },
                    onFailure: function(xhr) {
                        alert(xhr.statusText);
                        LightBox.remove();
                    }
                }).send();
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Body_Top" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Body_Content" runat="server">
<div class="infobox">
    <h3>
    <span>产品：[<%=proName %>]附属图列表</span>
		<a href="/Wilson/ProInfo/ProOtherCreate.aspx?proId=<%=proId %>" class="add action">为产品：[<%=proName %>]添加附属图</a>
    </h3>
     <div class="pd05">
        <table border="0" cellpadding="0" cellspacing="1" id="tablegrid" class="tb">
        <tr>
            <th>&nbsp;</th>
            <th>800 x 800</th>
            <th>400 x 400</th>
            <th>40 x 40</th>
            <th colspan="2">操作</th>
        </tr>
        <tbody>
        <asp:Repeater ID="repOtherImgList" runat="server" EnableViewState="false" onitemdatabound="repOtherImgList_ItemDataBound">
        <ItemTemplate>
        <tr>
            <td><%#Eval("RowId") %></td>
            <td><asp:Image ID="imgBig" runat="server" EnableViewState="false" CssClass="thumbImg"/></td>
            <td><asp:Image ID="imgMedium" runat="server" EnableViewState="false" CssClass="thumbImg"/></td>
            <td><asp:Image ID="imgSmall" runat="server" EnableViewState="false" CssClass="thumbImg"/></td>
            <td><a href="/Wilson/ProInfo/ProOtherEdit.aspx?pkid=<%#Eval("PKID") %>&proId=<%=proId %>">修改</a></td>
            <td><a href="javascript:void(0);" onclick="javascript:Del('<%#Eval("PKID") %>');">删除</a></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
        </tbody>
        </table>
     </div>
</div>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Body_Foot" runat="server">
</asp:Content>
